package com.ayf.payment.game.api.entity.platform;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * WX公众号配置信息表
 */
@Data
@Table(name = "wx_config")
public class WxConfig implements Serializable {
    /**
     * 用户id 1为平台
     */
    @Id
    @Column(name = "id")
    private Integer id;

    /**
     * 类型 1订阅号 2服务号 3认证服务号
     */
    @Column(name = "`type`")
    private Integer type;

    /**
     * 微信appId
     */
    @Column(name = "app_id")
    private String appId;

    /**
     * 商户ID
     */
    @Column(name = "merchant_id")
    private Integer merchantId;

    /**
     * 微信appSecret
     */
    @Column(name = "app_secret")
    private String appSecret;

    @Column(name = "name")
    private String name;

    /**
     * 微信token
     */
    @Column(name = "token")
    private String token;

    /**
     * 服务器域名
     */
    @Column(name = "net_url")
    private String netUrl;

    /**
     * 查看消息关键字
     */
    @Column(name = "`key`")
    private String key;

    /**
     * 状态 0禁用 1启用
     */
    @Column(name = "`status`")
    private Integer status;

    /**
     * 被关注回复
     */
    @Column(name = "attention_reply")
    private String attentionReply;

    /**
     * 公众号原始ID
     */
    @Column(name = "wx_origin_id")
    private String wxOriginId;

    /**
     * 微信自定义菜单
     */
    @Column(name = "menu_config")
    private String menuConfig;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 最后更新时间
     */
    @Column(name = "last_update_time")
    private Date lastUpdateTime;

    private static final long serialVersionUID = 1L;
}